grid = [
    [".",".",".",".",".","."],
    [".","0","0",".",".","."],
    ["0","0","0","0",".","."],
    ["0","0","0","0","0","."],
    [".","0","0","0","0","0"],
    ["0","0","0","0","0","."],
    ["0","0","0","0",".","."],
    [".","0","0",".",".","."],
    [".",".",".",".",".","."],
]

# y = len(grid[0])
# print(y)
# for i in  range(len(grid)):
#     x = x+str(1)

x=x1=x2=x3=x4=x5=x6=x7=x8= ""

for a,b,c,d,e,f in grid:
    x = (x+str(a))
    x1 = (x1 + str(b))
    x2 = (x2 + str(c))
    x3 = (x3 + str(d))
    x4 = (x4 + str(e))
    x5 = (x5 + str(f))

print("\n",x,"\n",x1,"\n",x2,"\n",x3,"\n",x4,"\n",x5,"\n",x6,"\n",x7,"\n",x8)

